projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b532d57
)
(UNIBYTE_STR_AS_MULTIBYTE_P): Parenthesize assignment when used as truth
author
Pavel Janík
<Pavel@Janik.cz>
Tue, 1 Jan 2002 22:12:56 +0000
(22:12 +0000)
committer
Pavel Janík
<Pavel@Janik.cz>
Tue, 1 Jan 2002 22:12:56 +0000
(22:12 +0000)
value to prevent gcc warnings.
src/charset.h
patch
|
blob
|
history
diff --git
a/src/charset.h
b/src/charset.h
index 961bb60afcbfddb6ee856161c7113390acf2c807..d4e85d91ebfb9be14d97d90461a144125853fa57 100644
(file)
--- a/
src/charset.h
+++ b/
src/charset.h
@@
-447,7
+447,7
@@
extern int width_by_char_head[256];
#define UNIBYTE_STR_AS_MULTIBYTE_P(str, length, bytes) \
(((str)[0] < 0x80 || (str)[0] >= 0xA0) \
- ? (
bytes) = 1
\
+ ? (
(bytes) = 1)
\
: (((bytes) = BYTES_BY_CHAR_HEAD ((str)[0])), \
((bytes) > 1 && (bytes) <= (length) \
&& (str)[0] != LEADING_CODE_8_BIT_CONTROL \